import request from "@/utils/request";

export const taskList = (id) => {
    return request({
        method: 'GET',
        url: '/con/task',
        params: {
            id
        }
    })
}

export const addTask = (data) => {
    return request({
        method: 'POST',
        url: '/con/task',
        data
    })
}

export const updateStatus = (id) => {
    return request({
        method: 'POST',
        url: '/con/updateStatus',
        params: {
            id
        }
    })
}
